import cv2
image=cv2.iread("figure.png")
cv2.imshow("BGR",image)
hsv_image=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
h,s,v=cv2.split(hsv_image)
cv2.imshow("B",b)
cv2.imshow("G",g)
cv2.imshow("R",r)
cv2.waitKey()
cv2.destroyAllWindows()